#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> runningSum(vector<int>& nums) {
        int nowSum = 0;
        vector<int> v1;
        for (auto& e : nums)
        {
            nowSum += e;
            v1.push_back(nowSum);
        }

        return v1;
    }
};